package com.codejam.hello.world.anno.check.mycheck;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MyCheckConstraint.class)
public @interface MyCheck {

    String[] paramValues();

    String message() default "defaultValue";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
